package server

import (
	"Redbook/redbook/internal/Domain"
	"Redbook/redbook/internal/reposetery"
	"context"
)

type LoginServer interface {
	Login(ctx context.Context, user Domain.User) error
}

type loginserver struct {
	Lrepo reposetery.Loginrepo
}

func NewLoginserver(lrepo reposetery.Loginrepo) LoginServer {
	return &loginserver{Lrepo: lrepo}
}

func (l *loginserver) Login(ctx context.Context, user Domain.User) error {
	//TODO implement me
	panic("implement me")
}
